/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package worlds3d;

import test3d.Test3D;

public class Main {

    // <editor-fold defaultstate="collapsed" desc=" Constant Attributes ">

    /** A flag defining whether or not Test Mode is active. */
    private static final boolean TEST = true;

    /** The test package screen name. */
    private static final String PACKAGE = "NeHe";

    /** The test id of the test to run. */
    private static final String ID = "03";

    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" Private Fields ">

    /** The Application3D object to execute. */
    private Application3D app3d;

    /** The Test object to execute. */
    private Test3D test;

    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc=" Initialization ">

    /**
     * Creates a new Main class.
     */
    public Main() {
        if (TEST) {
            String s = "test3d." + PACKAGE.toLowerCase() + '.' + PACKAGE + ID;
            try {
                Class<?> cls = Class.forName(s);
                Class<? extends Test3D> clz = cls.asSubclass(Test3D.class);
                test = clz.newInstance();
            }
            catch (Throwable t) {
                System.out.println(t);
            }
        }
        else {
            app3d = new Application3D();
        }
    }

    /**
     * Starts the application.
     * @param args the param array
     */
    public static void main(String[] args) {
        Main app = new Main();
    }

    // </editor-fold>

} // end class Main